﻿@using doufu.Common
@using doufu.Model
@model PetaPoco.Page<story>
           
<h2>
    故事列表
    @if (this.HasLogin())
    { @Html.ActionLink("添加", "Add", "Story")}</h2>
<ul class="nav nav-list items">
    @foreach (var entity in Model.Items)
    {
        <div class="row">
            <div class="span4"><a href="@Url.Action("Details", "Story", new { id = entity.guid.ToStr() })" target="_blank" title="@entity.story_title">@entity.story_title.SubStr(20)</a>
            @if (this.HasLogin())
            {
                <a target="_blank" href="@Url.Action("Add", "Story", new { entity.id })"><i>修改</i></a>
            }</div>
        </div>
    }
</ul>
@{ Html.Pager(Model); }